//
// Created by francklinson on 2021/11/17 AT 11:09.
// May Saint Diana bless you!
//

#include <iostream>
#include "boost/thread.hpp"

void wait(int seconds)
{
    boost::this_thread::sleep(boost::posix_time::seconds(seconds));
}

void thread()
{
    for (int i = 0; i < 5; ++i)
    {
        wait(1);
        std::cout << i << std::endl;
    }
}

int main()
{
    boost::thread t(thread);
    t.join();
}

